var site_root='http://localhost/virtualrealty/users/'; 
function Inint_AJAX() {
   try { return new ActiveXObject("Msxml2.XMLHTTP");  } catch(e) {} //IE
   try { return new ActiveXObject("Microsoft.XMLHTTP"); } catch(e) {} //IE
   try { return new XMLHttpRequest();          } catch(e) {} //Native Javascript
   alert("XMLHttpRequest not supported");
   return null;
}

function dochange(src,x) {
	//alert(src);
	//alert(x);
     var req = Inint_AJAX();
     req.onreadystatechange = function () { 
          if (req.readyState==4) {
               if (req.status==200) {
			   var rss = req.responseText;
			   //alert(rss);
                    document.getElementById(src).innerHTML=rss; //retuen value
               } 
          }
     };
     req.open("GET", site_root+"maxbudgetdata.php?data="+src+"&val="+x,true); //make connection
    
     req.send(null); //send value
}
 